package com.xhs.zdl.demo.radioButton;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.xhs.zdl.demo.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class BlankFragment extends Fragment {


    private View view;
    private TextView textView;

    public BlankFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment

        view = inflater.inflate(R.layout.fragment_blank, container, false);

        int index = getArguments().getInt("index");
        textView = (TextView) view.findViewById(R.id.radio_button_fragment_tv);
        textView.setText("这是第：" + (index+1) + "个页面");

        return view;
    }

}
